package com.itheima;

import com.itheima.Excepton.PermissionException;
import com.itheima.entity.PageResult;
import com.itheima.pojo.Permission;

public interface PermissionService {
    PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);

    void addPermission(Permission permission);

    void deletePermission(Integer id)throws PermissionException;

    Permission queryPermissionById(Integer id);

    void updatePermission(Permission permission);
}
